﻿<%@ Page Title="二次号码关键字" Language="C#" MasterPageFile="~/MMhome.Master" AutoEventWireup="true"
    CodeBehind="MdoubleNumberManage.aspx.cs" Inherits="MobileManager.MdoubleNumberManage" %>

<%@ Register Src="~/UserControl/InfoMenu.ascx" TagName="Menu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript" type="text/javascript" src="Js/UCcalendar/WdatePicker.js"></script>

    <style type="text/css">
        .divLeft
        {
            width: 165px;
            list-style: none;
            margin-left: 10px;
            margin-right: 5px;
            margin-top: 20px;
            float: left;
        }
        .divRight
        {
            float: left;
            margin-top: 10px;
            margin-right: 10px;
        }
    </style>

    <script type="text/javascript">
        function CheckSave() {
            var strValue = $("#<%=txtNumber.ClientID%>").val().Trim();
            if (strValue == "") {
                alert("二次号码关键字必须填写！");
                return false;
            }
            return true;
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <div style="width: 100%">
        <div class="divLeft">
            <uc1:Menu ID="uc1menu" runat="server" />
        </div>
        <div class="divRight" style="text-align: center;">
            <table>
                <tr>
                    <td>
                        添加新数据&nbsp;&nbsp;
                    </td>
                    <td style="text-align: right;">
                        二次号码关键字<span style="color: Red;">*</span>
                    </td>
                    <td style="text-align: left;">
                        <asp:TextBox ID="txtNumber" runat="server" CssClass="txtBoxNormal" MaxLength="50"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;&nbsp
                        <asp:Button ID="btnADD" runat="server" Text="添 加" CssClass="button_blue" Width="70px"
                            OnClick="btnADD_Click" OnClientClick="return CheckSave();" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="center">
                        <asp:Button ID="btnQuery" runat="server" Text="查 询" CssClass="button_green" Width="70px"
                            OnClick="btnQuery_Click" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btnQueryAll" runat="server" Text="全部显示" CssClass="button_green" Width="70px"
                            OnClick="btnQueryAll_Click" />&nbsp;&nbsp;
                        <asp:Button ID="btnDelete" runat="server" Text="删 除" CssClass="button_blue" Width="70px"
                            OnClick="btnDelete_Click" OnClientClick="return confirm('确定删除？')" />
                    </td>
                </tr>
            </table>
            <br />
            <div>
                <div style="width: 50%; float: left; text-align: left; margin-left: 0px;">
                    <asp:Label ID="lbCount" runat="server"></asp:Label>
                </div>
                <div style="text-align: right; float: right; margin-right: 20px;">
                    <asp:Label ID="lbRnumAll" runat="server"></asp:Label>
                </div>
            </div>
            <asp:GridView ID="GVinfo" runat="server" AutoGenerateColumns="False" CssClass="reason_box"
                Font-Size="12px" CellPadding="0" BorderWidth="0px" BorderColor="#A6E1FF" Width="100%"
                AllowPaging="True" PageSize="30" OnPageIndexChanging="GVinfo_PageIndexChanging">
                <Columns>
                    <asp:TemplateField HeaderText="二次号码关键字">
                        <ItemTemplate>
                            <asp:Label ID="lbValue" runat="server" Text='<%# Bind("TextValue") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                        <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建时间">
                        <ItemTemplate>
                            <asp:Label ID="lbTime" runat="server" Text='<%# Bind("CreateTime") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                        <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <span style="color: Red; font-weight: bold;">没有数据！</span>
                </EmptyDataTemplate>
            </asp:GridView>
        </div>
    </div>
</asp:Content>
